package com.aclyyx.mi.display.action;

import com.aclyyx.mi.display.Param;

public class ZouMaDeng1 extends Action {
	
	
	public ZouMaDeng1(Param param) {
		super(param);
	}

	public void init() {

		getParam().setX(getParam().displayWidth);
		getParam().setY(25);
	}

	@Override
	public void run() {
		Param p = getParam();
		long l = p.runtime;
		
		p.setX(new Long(p.displayWidth - l * 10 % (p.displayWidth + p.width)).intValue());
		p.setY(25);
		
		p.runtime++;
	}

}
